package com.sunnay.enums;


import com.sunnay.exception.Error;

/**
 * @discrption:拼团业务码 *@discrption: 系统定义错误码
 * * 规则: 错误码为七位数
 * *     -前2位 00-系统错误 10-用户错误 20-商品错误 30-优惠券 35-订单 40-支付
 * *     -后1位 0-业务正常 1-业务错误
 * *     -后4位 具体业务码

 * @user:Gaby
 * @createTime: 2021/4/5 9:48
 */
public enum GbCodeEnum implements Error {

    PAY_PANEL("0000001", "支付面板"),
    PANEL_ALERT("0000002", "面板弹框"),
    SYSTEM_NETWORK_ERROR("0010000", "系统网络繁忙,请稍后再试"),
    SYSTEM_DATA_NOT_FOUND_ERROR("0010001", "未查询到数据,请确认后重试"),
    SYSTEM_NO_OPERATE_REFRESH("0010002", "不可操作,请刷新"),
    SYSTEM_WX_SETTING_NOT_FOUND("0010003", "未查询到微信相关设置"),
    SYSTEM_WX_AUTH_ERROR("0010004", "授权失败,请重试"),
    SYSTEM_SERVICE_ERROR("0010005", "服务繁忙,请重试"),
    REFRESH_ERROR("0010006", "刷新失败,请重试"),
    SYSTEM_DATA_DELAY("0010007", "正在采集,请2秒后再次重试"),
    SYSTEM_NOT_IN("0010008", "当前账号存在安全问题,暂无法登录"),
    USER_NOT_FOUND("1010000", "用户信息不存在"),
    USER_NOT_LOGIN("1010001", "未登录"),
    USER_SINGLE_LOGIN("1010002", "您的账号已在其他设备登录"),
    USER_NOT_TOKEN_LOGIN("1010003", "登录密钥已失效，请重新登录"),
    USER_PASS_NOT_LOGIN("1010004", "您输入的密码错误，请重试"),
    USER_ADDRESS_REFUND_NOT_DELETE("1010005", "退货地址不可删除"),
    USER_ADDRESS_LINK_MAN_RIGHT_SET("1010006", "请正确设置联系人姓名"),
    USER_ADDRESS_RIGHT_SET("1010007", "请正确设置地址"),
    USER_ADDRESS_NOT_SET_REFUND("1010008","请先设置一个默认退货地址"),
    USER_PHONE_FORMAT_ERROR("1010100", "手机号码格式有误"),
    USER_PHONE_WEEK_EDIT_LIMIT("1010101", "手机号码一周只能修改一次"),
    USER_PHONE_IN_USED("1010102", "手机号码已被他人使用"),
    USER_PHONE_VALIDATE_ERROR("1010103", "手机号校验失败"),
    USER_PHONE_NOT_BIND("1010104", "未绑定手机号,请先绑定"),
    USER_PHONE_CODE_ERROR("1010105", "验证码有误"),
    USER_NICKNAME_LENGTH_TOO_LONG("1010201", "昵称长度过长"),
    USER_NICKNAME_IN_USED("1010202", "昵称已被使用"),
    USER_NICKNAME_FORMAT_ERROR("1010203", "昵称包含特殊符号,请重新设置"),
    USER_NICKNAME_WEEK_UPDATE_LIMIT("1010204", "昵称一周只能修改一次"),
    USER_SMS_VERIFY_ERROR("1010300", "短信验证码错误"),
    USER_HEAD_IMG_WEEK_UPDATE_LIMIT("1010400", "头像一周只能修改一次"),

    APP_USER_NOT_MONEY("1010300","积分不足，请先充值"),



    USER_SUPPLIER_APPLICATION_ING_ERROR("1010500", "正在审核中,请勿再次提交"),
    USER_DEPOSIT_NOT_FOUND("1010501","未托管"),
    USER_DEPOSIT_NOT_MESSAGE("1010502","获取拍品信息异常，请重新提交"),
    USER_DEPOSIT_END_TIME("1010503","拍品已截拍"),
    USER_DEPOSIT_BIND_SHOP("1010504","该账号未绑定该店铺"),
    USER_DEPOSIT_LOW_TIME("1010505","拍品截拍时间低于2小时，无法托管"),
    USER_DEPOSIT_ORDER_PAY("1010506","您有低于5个小时的订单，请立即处理，处理完成后请重新发送"),
    USER_DEPOSIT_MAX_MONEY("1010507","当前要出的价格大于目标价格"),

    USER_MONEY_NOT_LACK("1010508","您的积分不足，请联系订单号客服充值"),

    USER_LIVE_SMALL_NOT_FOUND("1010600","小号信息不存在"),
    USER_LIVE_PRODUCT_NOT_FOUND("1010601","暂未检测到直播间拍品链接"),

    USER_PAY_PWD_RIGHT_SET("1010601", "请正确设置支付密码"),
    USER_PAY_PWD_IN_USED("1010602", "已设置支付密码"),
    USER_ORIGINAL_PAY_PWD_INPUT_ERROR("1010603", "原支付密码输入错误"),
    USER_TYPE_IS_NOT_SUPPLIER("1010501","非管理员身份,请勿操作"),
    GOODS_CATEGORY_RIGHT_SET("2010001", "请正确设置分类"),
    GOODS_RESOURCE_IMG_SIZE_LT_3("2010002","图片最少3张"),
    GOODS_RESOURCE_IMG_SIZE_GT_9("2010003","图片最多9张"),
    GOODS_ORIGINAL_PRICE_RIGHT_SET("2010004","请正确设置原价"),
    GOODS_GROUP_PRICE_RIGHT_SET("2010005","请正确设置拼团价"),
    GOODS_DIRECT_PRICE_RIGHT_SET("2010006","请正确设置直接购买价"),
    GOODS_RANGE_PRICE_RIGHT_SET("2010007","设置规则:拼团价<直接购买价<原价"),
    GOODS_RANGE_PRICE_RIGHT_SET_1("2010008","设置规则:拼团价<原价"),
    GOODS_DIRECT_PRICE_RIGHT_USE_STOCK("2010009","设置购买价,商品的库存必须大于中团人数"),
    GOODS_STOCK_RIGHT_USE("2010010","请正确设置库存"),
    GOODS_SERIES_OPEN_GROUP("2010011","商品的的库存设置大于中团人数的2倍"),
    GOODS_HIT_NUM_RIGHT_SET("2010012","请正确设置中团人数"),
    GOODS_END_TIME_RIGHT_SET("2010013","请正确设置结束时间"),
    GOODS_COMMISSION_RATIO_TEMPLATE("2010014","佣金设置最低%s%%"),
    GOODS_COMMISSION_RATIO_RIGHT_SET("2010015","请正确设置佣金比例"),
    GOODS_SPEC_STOCK_RIGHT_SET("2010016","请正确设置规格的库存"),
    GOODS_NOT_FOUND("2010017", "很抱歉，您查看的商品不存在,可能已下架或者被转移。"),
    GOODS_SPEC_NOT_ADD("2010018", "不得增减规格,只能修改库存"),
    GOODS_BUY_LIMIT_NUM_TEMPLATE("2010019", "限购%s件"),
    GOODS_NOT_ENOUGH_TEMPLATE("2010020", "最多购买%s件"),
    GOODS_SPEC_NAME_IN_USED("2010021", "规格名称不能相同"),
    GOODS_GROUP_END("2010022", "本期拼团活动已结束"),
    GOODS_GROUP_PERSON_TOO_LONG("2010023", "本期拼团活动参团人数已满"),
    GOODS_NOT_BUY_SELF("2010024", "无法购买自己的商品"),
    GOODS_REPEAT_BUY_ERROR("2010025", "已参加该拼团 无法重复参加"),
    GOODS_JOIN_ING("2010026", "已有人参团,不可下架"),
    GOODS_HIT_NUM_RIGHT_USE_STOCK("2010027", "商品的库存不得小于中团人数"),
    GOODS_NOT_PUBLISH("2010028","发布功能已被限制"),
    GOODS_SPEC_HIT_NUM_RIGHT_USE_STOCK("2010029","设置规格后,每个规格的库存不得小于中团人数"),
    GOODS_SPEC_NOT_REDUCE_STOCK("2010030", "不得减少规格的库存"),
    COUPON_ALREADY_TAKE("3010001","已领取"),
    COUPON_UN_USED("3010002","优惠券无法使用"),
    COUPON_GRAB("3010003","手慢了，优惠券已被人领取了！"),
    COUPON_NOT_FOUND("3010004","暂无查询到此优惠券信息"),
    COUPON_EXPIRE("3010005","赠送失败,检测优惠券已失效"),
    ORDER_SELLER_NOT_SUPPLIER("3510001","购买失败,商家的店铺已关闭"),
    ORDER_NOT_DIRECT_BUY("3510002","无法直接购买"),
    ORDER_CHOOSE_SPEC("3510003", "请选择规格"),
    ORDER_NOT_FOUND("3510004", "未查询到订单信息"),
    ORDER_NOT_ADD_OPEN_SHOP("3510005", "已购买过开店礼包商品,无法继续下单"),
    ORDER_DELAY_CONFIRM_TAKE_APPLICATION("3510006","已申请"),
    ORDER_REMIND_SEND_HOURS("3510007","已提醒卖家,%s小时后可申请"),
    ORDER_REMIND_SEND_MINUTE("3510008","已提醒卖家,%s分钟后可申请"),
    ORDER_REPLACE_SEND("3510009","检测到已存在关联的仓库订单"),
    REFUND_NOT_ALLOW_APPLICATION("3610006", "已过售后服务时间"),
    REFUND_NOT_APPLICATION_GOODS_GROUP("3610007", "拼团中无法退款"),
    REFUND_NOT_APPLICATION_OPEN_SHOP("3610008", "开店礼包商品无法申请退款"),
    PAY_NOT_SUPPORT_UNIFIED_ORDER("4010000","暂不支持统一下单"),
    PAY_NOT_SUPPORT_WX_PAY("4010001","暂不支持微信支付"),
    PAY_NOT_SUPPORT_BALANCE_PAY("4010002","暂不支持余额支付"),
    PAY_NOT_SUPPORT_BD_PAY("4010003","暂不支持百度收银台"),
    PAY_FAIL_RETRY("4010004","支付失败,请确认后重试"),
    PAY_BODY_NOT_FOUND("4010005", "支付失败,暂未查询到支付主体"),
    PAY_PWD_ERROR("4010006", "支付密码错误"),
    PAY_PWD_NOT_SET("4010007", "暂未设置过支付密码"),
    PAY_MONEY_ERROR("4010008", "支付金额有误"),
    BALANCE_NOT_ENOUGH("4510001", "余额不足"),
    BALANCE_PHONE_LOGIN("4510002", "当前是手机号登录无法进行提现操作，请退出登录后使用微信授权登录进行提现！"),
    WX_AUTH_LOGIN("5010001", "请先微信授权登录");

    private String key;

    private String value;

    GbCodeEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public String getKey() {
        return this.key;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
